const type = {
    component: 'Point',
}

// 公共样式
const commonStyle = {
    rotate: 0,
    opacity: 1,
    width: 200,
    height: 22,
    fontSize: 14,
    fontWeight: 500,
    lineHeight: '',
    letterSpacing: 0,
    textAlign: '',
    color: '',
}

export const commonAttr = {
    animations: [],
    events: {},
    groupStyle: {}, // 当一个组件成为 Group 的子组件时使用
    isLock: false, // 是否锁定组件
}

const list = [
    {
        pointName: 'T2h',
        pointDes: '二次回温',
        pointId: 52,
        pointValue: '',
        pointUnit: '',
    },
]

for (let i = 0, len = list.length; i < len; i++) {
    const item = list[i]
    item.style = { ...commonStyle }
    list[i] = { ...type, ...commonAttr, ...item }
}

console.log(list)

export default list